<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<jsp:include page="/include/headView.jsp"></jsp:include>
</head>
<body>
	<jsp:include page="/include/header.jsp"></jsp:include>
	${welcomeMessage}
	<div id="slider">
		<div class="shell">
			<div class="slides">
				<div class="title">
					<span id="text">${formTitle}</span>
				</div>
				<form:form action="contactsEditAndCreate.html"
					commandName="contactsEditAndCreate">
					<div class="myform">

						<table width="100%" cellspacing="5px" class="border">
							<tr>
								<td>First Name <span id="notnull">(*)</span></td>
								<td><form:input path="firstName" /></td>
								<td>Manager Name</td>
								<td><form:input path="managerName" /> <span id="loopup1"></span>
									<a id="lookup"
									onclick="windowOpener(470,1024,'Search Postcode','../lookup/demo.html')">Look
										up</a></td>
							</tr>
							<tr>
								<td>SurName<span id="notnull">(*)</span></td>
								<td><form:input path="surName" /></td>
								<td>Contact Type<span id="notnull">(*)</span></td>
								<td><form:select path="contactType">
										<form:options items="${contactTypeList}" itemValue="id"
											itemLabel="name" />
									</form:select></td>
							</tr>
							<tr>
								<td>Known As</td>
								<td><form:input path="knownAs" /></td>
								<td>Best Contact Method</td>
								<td><form:select path="bestContactMethod">
										<form:options items="${bestContactMethodList}" itemValue="id"
											itemLabel="name" />
									</form:select></td>
							</tr>
							<tr>
								<td>Office Phone</td>
								<td><form:input path="officePhone" /></td>
								<td>Job Role</td>
								<td><form:input path="jobRole" /></td>
							</tr>
							<tr>
								<td>Mobile Phone</td>
								<td><form:input path="mobilePhone" /></td>
								<td>WorkBase</td>
								<td><form:input path="workBase" /></td>
							</tr>
							<tr>
								<td>ST Home Phone</td>
								<td><form:input path="stHomePhone" /></td>
								<td>Job Title</td>
								<td><form:input path="jobTitle" /></td>
							</tr>
							<tr>
								<td>Email Address</td>
								<td><form:input path="email" /></td>
								<td>Is Active</td>
								<td><form:checkbox path="isActive" /></td>
							</tr>
							<tr>
								<td colspan="6" class="bottom"></td>
							</tr>
						</table>
					</div>
					<div class="buttonbotton">
						<table>
							<tr>
								<td><a class="button" onclick="formSubmit('contactsEditAndCreate','contactsEditAndCreate.html','?command=save');"><span>Save</span></a></td>
								<td><a class="button" href="contactsEditBack"><span>Back</span></a></td>
							</tr>
						</table>
					</div>
				</form:form>
			</div>
		</div>
	</div>
	<div id="slider-navigation"></div>
</body>
</html>